<{if $goodsData}>
<input type="hidden" class="action-pagedata" value="{total:<{$total}>, pagecurrent:<{$page}>, pagetotal:<{$pagetotal}>}">
<ul class="pt-list">
  <{foreach from=$goodsData key=key item=goods_row}>
  <li class="pt-h-item c-fix">
    <a href="<{link app=b2c ctl=wap_product arg0=$goods_row.products.product_id}>" class="pt-h-link">
        <div href="<{$goods_row.image_default_id|storager:'s'}>" class="pt-h-img"><img src="<{$goods_row.image_default_id|storager:'s'}>"></div>
        <div class="pt-h-info">
            <div class="pt-h-name">
                <{if !isset($goods_row.prepare) && $goods_row.prepare.promotion_type != 'prepare'}>
                    <{$goods_row.name|cut:'90'}>
                <{/if}>
                <!--预售商品判断-->
                <{if $goods_row.prepare.promotion_type == 'prepare'}>
                    <{$goods_row.name|cut:'90'}>&nbsp;<span style="color:#fff;background:red;font-weight:bold;">预售</span>
                <{/if}>
            </div>
            <div class="pt-h-price price">
                <{$goods_row.products.price|cur_odr}>
            </div>
        </div>
    </a>
    <div style="float:right;width:25px;height:25px;">
        <img src="../../public/member_icon/ym4.png" alt="<{$goods_row.name}>" onclick="addNew(this)">
    </div>
            <{if $point_status == 'on'}>
            <{if $goods_row.comments_count > 0}>
            <{if $commentListListnum=='true'}>
            <div class="pt-h-other">
                <div class="star"><b style="width:<{$goods_row.goods_point.avg_num*20}>%;"></b></div>
                <{$goods_row.comments_count}> 条评论
            </div>
            <{/if}>
            <{else}>
            <{if $commentListListnum=='true'}>
            <div class="pt-h-other">
              暂无评价
            </div>
            <{/if}>
            <{/if}>
            <{/if}>
  </li>
  <{/foreach}>
</ul>
<{wap_pagers ajax=true data=$pager}>

<{else}>
<div class="no-data">
    <p class="warn">抱歉！没有符合条件的商品</p>
    <p>您可以更改关键字重新查找</p>
</div>
<{/if}>

<link rel="stylesheet" type="text/css" href="../../public/app/wap/statics/css_mini/xcConfirm.css"/>
<script src="/public/app/wap/statics/js_mini/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
<script src="/public/app/wap/statics/js_mini/xcConfirm.js" type="text/javascript" charset="utf-8"></script>
<!-- <{css src="xcConfirm.css" app="wap" pdir="css_mini"}>
<{script src="xcConfirm.js" app="wap" pdir="js_mini"}>
<{script src="jquery-1.9.1.js" app="wap" pdir="js_mini"}> -->
<script>   
    function addNew(Name){
    var goodsname = Name.alt;
            $.ajax({
                type:'post',
                dataType: 'json',
                url: 'cart-addNew.html',
                async: true,
                data: {'goodsname':goodsname},
                success: function (msg) {
                    // alert(msg);
                    window.wxc.xcConfirm(msg, window.wxc.xcConfirm.typeEnum.info);
                }
            });
    }
</script>
